import axios from "axios"
const http=axios.create({
  baseURL:"http://114.132.247.177:8080",
  timeout:5000
},(err)=>err)

http.interceptors.request.use((config)=>{
  return config
})

http.interceptors.response.use((res)=>{
  if(res.data.code==200) return res.data
  else return false
},(err)=>err)


export default http